<template>
	<view class="box" :style="{'padding-top':systemHeight+28.5+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back()"></image>
			<view>Order Details</view>
			<view class="right"></view>
		</view>
		<image class="bg" src="/static/img/bg_5.png"></image>
		<image class="bingo" src="/static/img/all_right.png"></image>
		<view class="bingo_text">Order completed</view>
		<view class="bingo_status">The itinerary has ended</view>
		<view class="content">
			<view class="content_title">
				<view>Income</view>
				<view class="content_money"><text>MK</text>8000</view>
			</view>
			<view class="row" v-for="(item,index) in rowList" :key="item.id">
				<view class="row_left">{{item.title}}</view>
				<view class="row_right">66666666666</view>
			</view>
		</view>
		<view class="bottom">
			<view>Payment platform required</view>
			<view class="bottom_money"><text>MK</text>1000</view>
			<view class="payment">payment</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null,
				rowList: [{
					id: 1,
					title: 'Order time'
				}, {
					id: 2,
					title: 'starting point'
				}, {
					id: 3,
					title: 'End'
				}, {
					id: 4,
					title: 'Mileage'
				}, {
					id: 5,
					title: 'TIME'
				}, {
					id: 6,
					title: 'Payment method'
				}]
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back(){
				this.utils.Back()
			}
		}
	}
</script>

<style>
	.box {
		display: flex;
		flex-direction: column;
		align-items: center;
		position: relative;
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		margin: 0rpx auto 36rpx;
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 57rpx;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
	}

	.title {
		font-family: Mont;
		font-weight: 800;
		font-size: 32rpx;
	}

	.right {
		width: 20rpx;
	}

	.bg {
		position: absolute;
		z-index: -1;
		top: 0;
		left: 0;
		width: 100%;
		height: 426rpx;
	}

	.bingo {
		width: 126rpx;
		height: 125rpx;
		margin-bottom: 22rpx;
	}

	.bingo_text {
		font-family: Mont;
		font-weight: bold;
		font-size: 26rpx;
		margin-bottom: 20rpx;
	}

	.bingo_status {
		font-family: Mont;
		font-weight: 500;
		font-size: 24rpx;
		color: #101010;
		margin-bottom: 38rpx;
	}

	.content {
		padding-top: 50rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 0rpx;
		margin-bottom: 30rpx;
		width: 92%;
		background: #FFFFFF;
		box-shadow: -10rpx -1rpx 50rpx 0rpx rgba(55, 55, 55, 0.08);
		border-radius: 30rpx;
	}

	.content_title {
		display: flex;
		align-items: center;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		margin-bottom: 54rpx;
	}

	.content_money {
		font-family: Mont;
		font-weight: bold;
		font-size: 36rpx;
		margin-left: 20rpx;
	}
	.content_money text{
		font-size: 22rpx;
	}
	.row{
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items:center;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		color: #515151;
		margin-bottom: 40rpx;
	}
		
	.row_left{
		opacity: 0.8;
	}
	.row_right{
		font-family: Mont;
		font-weight: 500;
		font-size: 24rpx;
	}
	.bottom{
		position: relative;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		color: #515151;
		padding: 40rpx 30rpx;
		box-sizing: border-box;
		width: 92%;
		height: 170rpx;
		background: #FFFFFF;
		box-shadow: -10rpx -1rpx 50rpx 0rpx rgba(55,55,55,0.08);
		border-radius: 30rpx;
	}
	.bottom_money{
		margin-top: 33rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 36rpx;
	}
	.bottom_money text{
		font-size: 24rpx;
	}
	.payment{
		position: absolute;
		top: 50%;
		right: 30rpx;
		transform: translate(0,-50%);
		width: 162rpx;
		height: 50rpx;
		background: #34BA78;
		border-radius: 12rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 24rpx;
		color: #FFFFFF;
		line-height: 50rpx;
		text-align: center;
	}
</style>